<?php
class ArrowTemplateBlockValue extends ArrowTag{
		
	public function generateOutputCode(){
		$parent = $this->getParent();
		$name = $parent->getArg("name");
		$file = $parent->getTemplate()->getPath()."/".$name.".tpl";
		$sourceTemplate = file_get_contents($file);
		if( !empty($sourceTemplate) ){
			return $sourceTemplate;
		}else{
			$schemaBlockfile = $parent->getTemplate()->getSchema()->getDir().""."/".$name.".tpl";
			$sourceSchemaBlock = file_get_contents($schemaBlockfile);
			return $sourceSchemaBlock;
		}
	}
}
?>
